function [ x,y,z ] = fromSphToCart( r, theta, phi )
%UNTITLED6 Summary of this function goes here
%   Detailed explanation goes here

    cosPhi   = cos(phi);   sinPhi   = sin(phi);
    cosTheta = cos(theta); sinTheta = sin(theta);
    x = r.*sinPhi.*cosTheta;
    y = r.*sinPhi.*sinTheta;
    z = r.*cosPhi;

end

